package com.demo.core.model;

import com.demo.core.model.support.SimpleBaseModel;

/**
 * 
 * 配置子项信息
 * 
 * @author ryuu.kk
 *
 */
public class ConfigItem extends SimpleBaseModel implements java.io.Serializable {

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = -2255625389009372149L;

	/**
	 * 配置状态：正常
	 */
	public static final String STATUS_NORMAL = "normal";
	
	/**
	 * 配置状态：隐藏
	 */
	public static final String STATUS_HIDE = "hide";
	
	/**
	 * 配置模型外键ID
	 */
	private Long configId;
	
	/**
	 * 配置Key
	 */
	private String key;
	
	/**
	 * 配置名称
	 */
	private String name;
	
	/**
	 * 配置显示文本
	 */
	private String text;
	
	/**
	 * 配置内容
	 */
	private String value;
	
	/**
	 * 该配置是否可用
	 */
	private boolean enabled;
	
	/**
	 * 配置状态
	 */
	private String status;
	
	/**
	 * 配置国际化信息
	 */
	private String i18n;
	
	/**
	 * 优先级
	 */
	private int priority;

	public Long getConfigId() {
		return configId;
	}

	public void setConfigId(Long configId) {
		this.configId = configId;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getI18n() {
		return i18n;
	}

	public void setI18n(String i18n) {
		this.i18n = i18n;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}
}
